/**
 * LiveJS bookmarklet loader
 */



function livejs_load ()
{
	var path = LIVELIBS;
	
	window.livecoding = {isBookmarklet: true, resourcePrefix: path, userCallbacks: []};

	// loads files
	var files = ['yui/yuiloader-dom-event.js',
			 'liveinit.js'
			];

	var headElems = document.getElementsByTagName('head');
	for (var i=0; i<files.length; i++)
	{
		var scriptElem = document.createElement('script');
		scriptElem.setAttribute ('src', path + files[i]);
		headElems[0].appendChild(scriptElem);
	}
}

//LIVELIBS = ".";
LIVELIBS = "../lib/";
//LIVELIBS = "http://palvella.hu/livejs/lib/";
livejs_load ();
